<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>
<script>
    /*     var sum = 0;
    var average = 0;
    for (var i = 1; i <= 100; i++) {
        sum = sum + i;
    }
    average = sum / 100;
    console.log(average); */

    /*  var even = 0;
     var odd = 0;
     for (var i = 1; i <= 100; i++) {
         if (i % 2 == 0) {
             odd = odd + i;
         } else {
             even = even + i;
         }
     }
     console.log(even);
     console.log(odd); */
    /*     var sum = 0;
        for (var i = 1; i <= 100; i++) {
            if (i % 3 == 0) {
                sum += i;
            }
        }
        console.log(sum); */

    /*  var num = prompt('输入总人数');
     var sum = 0;
     var average = 0;
     for (var i = 1; i <= num; i++) {
         var score = prompt('输入第' + i + '个成绩');
         sum = sum + parseFloat(score);
     }
     average = sum / num;
     alert('总分' + sum);
     alert('平均分' + average); */

    /*  var str = '';
     for (var i = 1; i <= 5; i++) {
         str = str + '★';
     }
     console.log(str); */

    /*     var str = '';
        var row = prompt('输入行');
        var cols = prompt('输入列');
        for (var j = 1; j <= row; j++) {
            for (var i = 1; i <= cols; i++) {
                str = str + '★';
            }
            str = str + '\n';
        }
        console.log(str); */

    /*  var str = '';
     for (var i = 10; i >= 0; i--) {
         for (var j = i; j <= 10; j++) {
             str = str + '★';
         }
         str = str + '\n';
     }
     console.log(str); */

    /*  var str = '';
     for (var i = 1; i <= 9; i++) {
         for (var j = 1; j <= i; j++) {
             str += j + '×' + i + '=' + i * j + '\t';
         }
         str = str + '\n';
     }
     console.log(str); */

    /*  var i = 1;
     while (i <= 100) {
         console.log(i);
         i++;
     } */

    /* var message = prompt('你爱我吗？');
    while (message !== '爱') {
        message = prompt('你爱我吗？');
    }
    alert('我也爱你'); */
    /* var sum = 0;
    var j = 1;
    do {
        sum += j;
        j++
    } while (j <= 100)
    console.log(sum);

    do {
        var love = prompt('你爱我吗');
    } while (love !== '爱')
    alert('我也爱你'); */

    /*   for (var i = 1; i <= 5; i++) {
          if (i == 3) {
              continue;
          }
          console.log(i);

      } */

    /*    for (var i = 1; i <= 5; i++) {
           if (i == 3) {
               break;
           }
           console.log(i);

       } */

    /* var ming = '123';
    var mima = '456';
    do {
        var user = prompt('输入用户名');
        var possword = prompt('密码');
    } while (user !== ming || possword !== mima)
    alert('登录成功'); */

    /* var money = 100;
    for (var i = 1; i <= 100; i++) {
        num = prompt('请输入你要的操作 \n 1.存钱 \n 2.取钱 \n 3.显示余额 \n 4.退出');
        if (num == 1) {
            var cun = prompt('请输入你需要存多少');
            money = money + parseFloat(cun);
            alert('你的余额为' + money + '元');
        } else if (num == 2) {
            var qu = prompt('请输入你需要取多少');
            if (qu > money) {
                alert('余额不足');
            } else {
                money = money - parseFloat(qu);
                alert('你的余额为' + money + '元');
            }
        } else if (num == 3) {
            alert('你的余额为' + money + '元');
        } else if (num == 4) {
            break;
        }
    }
    alert('退出成功'); */


    /* var sum = 0;
    for (var i = 1; i <= 100; i++) {
      if (i % 10 == 3) {
        continue;
      }
      sum += i;
    }
    console.log(sum); */
</script>

<body></body>

</html>